using System.Data;
using PCSComProduction.WorkOrder.DS;

using PCSComPayroll.DS;

namespace PCSComPayroll.BO
{
	public class CalculateProductionNormBO
	{
		public CalculateProductionNormBO()
		{
			
		}
		#region IObjectBO Members

		//[AutoComplete(true)]
		public void UpdateDataSet(DataSet dstData)
		{
			PAY_ProductionNormDS dsNorm = new PAY_ProductionNormDS();
			dsNorm.UpdateDataSet(dstData);
		}

		//[AutoComplete(true)]
		public void UpdateDataSet(DataSet dstData, string pstrDeleteList)
		{
			PAY_ProductionNormDS dsNorm = new PAY_ProductionNormDS();
			// delete old data first
			dsNorm.Delete(pstrDeleteList);
			// save to database
			dsNorm.UpdateDataSet(dstData);
		}

		public void Update(object pObjectDetail)
		{
			// TODO:  Add CalculateProductionNormBO.Update implementation
		}

		public void Delete(object pObjectVO)
		{
			// TODO:  Add CalculateProductionNormBO.Delete implementation
		}

		public void Add(object pObjectDetail)
		{
			// TODO:  Add CalculateProductionNormBO.Add implementation
		}

		public object GetObjectVO(int pintID, string VOclass)
		{
			// TODO:  Add CalculateProductionNormBO.GetObjectVO implementation
			return null;
		}

		#endregion

		//[AutoComplete(true)]
		public DataTable GetBOM()
		{
			PRO_WOBOMDS dsWOBOM = new PRO_WOBOMDS();
			return dsWOBOM.GetBOMStructure();
		}
		//[AutoComplete(true)]
		public DataTable GetRunTime(int pintSaleOrderDetailID)
		{
			PAY_ProductionNormDS dsNorm = new PAY_ProductionNormDS();
			return dsNorm.GetRunTime(pintSaleOrderDetailID);
		}
	}
}
